<div>
<div><?php echo $this->escape($this->training->Name);?></div>
<div>Description :</div>
<div><?php echo $this->training->Detail;?></div>
<div>
<?php if($this->rule == Core_Business_Rule::Trainer && !$this->alreadyPostulate && !$this->hastrainer):?>
<form method="post" action="<?php echo $this->url(array("controller"=>"training","module"=>"default","action"=>"postulate"));?>">
<input type="submit" value="postulate"/>
<?php echo $this->formHidden('trid',$this->training->Id);?>
</form>
<?php endif;?>
</div>
<?php if($this->rule == Core_Business_Rule::Customer):?>
<div><table><tr><th>Nom</th><th>Prenom</th><th>Action</th></tr><?php if(isset($this->candidates) && count($this->candidates)>0):?><?php echo $this->partialLoop('training/_trainerdetail.phtml',$this->candidates);?><?php endif;?></table></div>
<?php endif;?>
</div>
<div><a href="/training/index">Retour</a></div>
<?php echo $this->headScript()->appendFile('/js/trainingdetail.js','text/javascript');?>